﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;

namespace iResume
{
    public class Recruiter
    {
        private string companyName;
        private string companyAddress;
        private string companyProfile;
        private string companyURL;
        private string personIncharge;
        private string email;
        private string contactNum;
        private string password;
        private string rePassword;
        private string position;
        private string department;
        private byte[] companyLogo;
        private string salaryRange;
        private string jobPosition;
        private string category;
        private string jobDescription;
        private string vacancyAvabile;
        private string jobID;
        private string postalCode;
        private string confirmationCode;

        private ArrayList recruiterList;

       
        public Recruiter()
        {
        }

        public string CompanyName
        {
            get { return companyName; }
            set { companyName = value; }
        }

        public string CompanyAddress
        {
            get { return companyAddress; }
            set { companyAddress = value; }
        }

        public string CompanyProfile
        {
            get { return companyProfile; }
            set { companyProfile = value; }
        }
        public string CompanyURL
        {
            get {return companyURL;}
            set { companyURL = value; }
        }
        public string Position
        {
            get { return position; }
            set { position = value; }
        }
        public string Department
        {
            get { return department; }
            set { department = value; }
        }

        public string PersonInCharge
        {
            get { return personIncharge; }
            set { personIncharge = value; }
        }
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        public string ContactNum
        {
            get { return contactNum; }
            set { contactNum = value; }
        }
        public string Password
        {
            get { return password; }
            set { password = value; }
        }
        public string RePassword
        {
            get { return rePassword; }
            set { rePassword = value; }
        }
        public ArrayList RecruiterList
        {
            get { return recruiterList; }
            set { recruiterList = value; }
        }

        public byte[] CompanyLogo
        {
            get { return companyLogo; }
            set
            {
                companyLogo = value; 
                if (value.Equals(DBNull.Value) || value == null)
                {
                    companyLogo = System.Text.Encoding.UTF8.GetBytes(String.Empty);
                }
                else
                {
                    companyLogo = value;
                }
            }

             
        }

        public string SalaryRange
        {
            get { return salaryRange; }
            set { salaryRange = value; }
        }

        public string JobPosition
        {
            get { return jobPosition; }
            set { jobPosition = value; }
        }
        public string Category
        {
            get { return category; }
            set { category = value; }
        }
        public string JobDescription
        {
            get { return jobDescription; }
            set { jobDescription = value; }
        }
        public string VacancyAvabile
        {
            get { return vacancyAvabile; }
            set { vacancyAvabile = value; }
        }
        public string JobID
        {
            get { return jobID; }
            set { jobID = value; }
        }
        public string PostalCode
        {
            get { return postalCode; }
            set { postalCode = value; }
        }

        public string ConfirmationCode
        {
            get { return confirmationCode; }
            set { confirmationCode = value; }
        }

        public Recruiter(string companyName, string companyAddress, string companyProfile, string personIncharge, string email, string contactNum, string password,string rePassword, byte[] companyLogo, string postalCode)
        {
            this.companyName = companyName;
            this.companyAddress = companyAddress;
            this.companyProfile = companyProfile;
            this.personIncharge = personIncharge;
            this.email = email;
            this.contactNum = contactNum;
            this.password = password;
            this.rePassword = rePassword;
            this.companyLogo = companyLogo;
            this.postalCode = postalCode;
            this.recruiterList = new ArrayList();

        }
        public Recruiter(string companyName, string personIncharge, string email, string password, string rePassword)
        {
            this.companyName = companyName;
            this.personIncharge = personIncharge;
            this.email = email;
            this.password = password;
            this.rePassword = rePassword;
            this.recruiterList = new ArrayList();
        }
        public Recruiter(string companyName, string companyAddress, string companyProfile, string personIncharge, string email, string contactNum, string companyURL, string position, string department, byte[] companyLogo, string postalCode)
        {
            this.companyName = companyName;
            this.companyAddress = companyAddress;
            this.companyProfile = companyProfile;
            this.personIncharge = personIncharge;
            this.email = email;
            this.contactNum = contactNum;
            this.companyURL = companyURL;
            this.position = position;
            this.department = department;
            this.companyLogo = companyLogo;
            this.postalCode = postalCode;
            this.recruiterList = new ArrayList();

        }

        public Recruiter(string companyName, string companyAddress, string companyProfile, string personIncharge, string email, string contactNum, string companyURL, string salaryRange, string jobPosition, string category, string jobDescription, string vacancyAvabile, string jobID, string postalCode)
        {
            this.companyName = companyName;
            this.companyAddress = companyAddress;
            this.companyProfile = companyProfile;
            this.personIncharge = personIncharge;
            this.contactNum = contactNum;
            this.companyURL = companyURL;
            this.email = email;
            this.salaryRange = salaryRange;
            this.jobPosition = jobPosition;
            this.category = category;
            this.jobDescription = jobDescription;
            this.vacancyAvabile = vacancyAvabile;
            this.jobID = jobID;
            this.postalCode = postalCode;
            this.recruiterList = new ArrayList();
        }

        public Recruiter(string email, string salaryRange, string jobPosition, string category, string jobDescription, string vacancyAvabile, string jobID)
        {
         this.email = email;
         this.salaryRange = salaryRange;
         this.jobPosition = jobPosition;
         this.category = category;
         this.jobDescription = jobDescription;
         this.vacancyAvabile = vacancyAvabile;
         this.jobID = jobID;
        }
        public Recruiter(string companyName, string companyAddress, string companyProfile, string personIncharge, string email, string contactNum, string companyURL, string salaryRange, string jobPosition, string category, string jobDescription, byte[] companyLogo, string postalCode)
        {
            this.companyName = companyName;
            this.companyAddress = companyAddress;
            this.companyProfile = companyProfile;
            this.personIncharge = personIncharge;
            this.contactNum = contactNum;
            this.companyURL = companyURL;
            this.email = email;
            this.salaryRange = salaryRange;
            this.jobPosition = jobPosition;
            this.category = category;
            this.jobDescription = jobDescription;
            this.companyLogo = companyLogo;
            this.postalCode = postalCode;
            this.recruiterList = new ArrayList();
            
        }
        public Recruiter(byte[] companyLogo)
        {
            this.companyLogo = companyLogo;
        }
        public Recruiter(string email)
        {
            this.email = email;
        }
        public Recruiter(string email, string confirmationCode)
        {
            this.email = email;
            this.confirmationCode = confirmationCode;
            this.recruiterList = new ArrayList();
        }




    }
}